const messageService = require("@/server/message");
const { successData, sendCode } = require("@/utils/r/result");

const message = {
  async GetList(req, res) {
    successData(res, await messageService.GetList(req.query));
  },
  async UpdateReview(req, res) {
    sendCode(res, await messageService.UpdateReview(req.body));
  },
  async Delete(req, res) {
    sendCode(res, await messageService.Delete(req.body));
  },
};

module.exports = message;
